php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#314533 - 06/22/07 05:32 AM [7.1] - 'My Feeds' added to 'My Stuff' menu
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
I had done this for 6.5.x and it was essentially a standalone. ie: just upload and poof, done.

This one is much more integrated, in that it ties into the "My Stuff" menu.

It also takes advantage of the Smarty stuff to allow me to totally remove an rssGenerator class I had to code.

Essentially, clicking on the My Stuff menu, shows an additional option:



Clicking on that option will query the DB and return a list of feeds that the user can subscribe to like so:


Full size

Note: feel free to change the error message and general description stuff.

All the rss icons are feed uri's and can be added to your feedreader of choice. since they are generated per the user's read-rights, there won't be any wrong uri (per se).

But in the event that a user starts playing with the link, they'll get the following error message (configure as you wish in - language file)



I've included the general links as well:

1. PM inbox messages
2. Active topics
3. Active posts

Works outta the box for both 7.1 and 7.2 and fits with the standard structure: scripts, templates, language.

Enjoy!

ps: i added 3 < div id="xxx" > around the major chunks of the html side of the template, so you css'ers can go crazy with some fancy smanchy stuff. for those who don't know or care about it, the divs will be transparent anyway wink


Attachments
2429-Readme.txt (47 downloads)
Description: w00t

2430-sirdude.my.feeds.zip (54 downloads)
Description: All files


_________________________

Top
#314534 - 06/22/07 08:31 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Carte Blanche Offline
Newbie

Registered: 10/08/06
Posts: 21
Loc: Auckland, NZ
Nice.

Top
#314535 - 06/22/07 10:18 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Carte Blanche]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8373
Loc: Olympia, WA
Very nice. I may just have to get this into the stock code for 7.3 wink
_________________________
UBB.threads Developer

Top
#314536 - 06/22/07 10:33 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Rick]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
thanks Rick. i'll polish off the wish list then and also combine some copy/pasted code/template stuff.

the last push i made to get it done left a couple of chunks of semi-duplicated code.

should be done by tonite.

_________________________

Top
#314537 - 06/22/07 10:47 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
well hurry up then wink

Seriously - many thanks smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314538 - 06/22/07 11:01 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Ian_W]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
Originally Posted By: Ian_W
well hurry up then wink




will hop right on it then wink

_________________________

Top
#314545 - 06/22/07 05:32 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
Updated readme.txt and .zip file. Bug in header.tpl and in generic.php
_________________________

Top
#314548 - 06/22/07 07:21 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I do rather like this for the record smile
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314559 - 06/23/07 01:39 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
ok, i cleaned up the code. drastically reducing it's size, including the bloated template too.

only thing remaining is to get the PM inbox to work and i'd call it a wrap.

i'll upload tomorrow.
_________________________

Top
#314564 - 06/23/07 03:04 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
well done smile Thanks
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314569 - 06/23/07 12:42 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Ian_W]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
hrm.. feeds work fine, but i'd really like to add a tweak for those forums that are essentially available to guests as 'read'

i'm going to add that in..

ok, got that.

now just working on making the feed be valid according to w3c. now it is




Edited by sirdude (06/23/07 04:09 PM)
Edit Reason: w3c + anon users
_________________________

Top
#314570 - 06/23/07 05:47 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
Excellent work

Hat comes off and thanks you too wink

Rick Hurry up and put it in b3 not 7.3 wink lol

Top
#314574 - 06/23/07 06:05 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Mark_S]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
All done, PMs in and w3c checked.

Enjoy!
_________________________

Top
#314577 - 06/24/07 01:53 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Awesome... Validation = key smile
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314578 - 06/24/07 10:31 AM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
hehe, yah, the last validation quirk was that the smilies were relative Urls and not FULL urls. I didn't know w3c would be that picky..

oh well wink
_________________________

Top
#314582 - 06/24/07 07:31 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
It wanted full URLs? that's stupid... I have 5 domains for my site, and all have to work independantly; not to mention have to support SSL; so that's 10 domains that would have to work independant... so if a user was blocking (well, if their isp was) my main url, they can usually get in via my ssl, but if it was hardcoded all urls then i'd be sol lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314584 - 06/24/07 07:34 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
giz, that's not the issue.

the url is relative in the description, but when shown and you'd right click on it, you get full url.

it's just that the w3c validator wanted it to be full in the description to start with.

smileys as they are now are relative anyway. %%GRAEMLIN..%% is replaced by a relative URL (style array path) for display. you'd have uber-probs, if that didn't work.

no biggie wink

just add '$config[FULL_URL]' and poof done.

i ran into this same issue, when i was coding up the 'Email Thread' mod. All smileys puked (at first) in the received Html Email frown
_________________________

Top
#314589 - 06/24/07 09:10 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
:snicker: I set $config['FULL_URL'] to $_server['HTTP_HOST'] and replaced "http" with my ssl monitor wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314592 - 06/24/07 10:21 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
m'kay.. whatever fluffs your flannel, i guess
_________________________

Top
#314593 - 06/24/07 10:27 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
by setting it to http host it reads the domain it's being accessed as; so you can set it to allow posts from any domain (as some portions will set you as the domain set in the forums); and the ssl stuff is a nessessity to bypass some more-stupid site filters
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314594 - 06/24/07 11:24 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
dude, you completed missed my point (or we are just off on some tangent not related) of why it's recommended for full urls in description or in an email and why w3c flagged it.

example: for smileys, the non-full url is '/images/graemlins/default/smile.gif'

that works well and good, if that url is on the site itself, but blows up in an email where it's NOT being read from the site itself.

example (i copied raw html from my initial post in this topic where i have the wink smiley):

Code:
ps: i added 3 &lt; div id="xxx"  &gt; around the major chunks of the 
html side of the template, so you css'ers can go 
crazy with some fancy smanchy stuff. for those 
who don't know or care about it, the divs will 
be transparent anyway 
<img src="/forums/images/graemlins/default/wink.gif"
 alt=";\)" title="wink" height="15" width="15">


assume i email that to myself and then try to read it ... dead smiley link wink

what you end up in an email is broken links for every smiley and where i didn't notice it in the feed was ok. and the feed will be ok with relative urls, but still not a w3c recommended practice. emails are prime example, where it just plain blows up.

so bottom line is w3c makes sense and the fix was a minor one to be in compliance.

no need for redir or whatever hokus pokus to fix this problem. i just needed to do it right in the first place and thank god for feed validators as well as the other ones.

regardless. back to topic..
_________________________

Top
#314595 - 06/24/07 11:45 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
true, that would be a dead link if emailed to someone like that...

But i like my hucus pocus frown
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#314667 - 07/10/07 04:01 PM Re: [7.1.1] - 'My Feeds' added to 'My Stuff' menu [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
fixed a couple more bugs and added some more features. i will update the readme and add some screenies. now 7.2 compatible and soon to be 7.3 ready.

essentially, it's more integrated into ubbt and has even more functionality..

all in keeping with the 'drop in' philosophy...

film @ 11
_________________________

Top
Page 1 of 2 1 2 >



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks